import wx
from wx import xrc


class MyApp(wx.App):
    def OnInit(self):
        self.res = xrc.XmlResource("xrc/mainfrm.xrc")

        return True

    def Initialize(self):

        frame = self.res.LoadFrame(None,  "MainFrame" )

        self.SetTopWindow(frame)
        frame.Show()

if __name__ == '__main__':
    app = MyApp(False)
    app.Initialize()
    app.MainLoop()
